package com.tanhua.recommend.handler;

import com.tanhua.domain.mongo.Publish;
import com.tanhua.domain.mongo.PublishScore;

/**
 * 动态处理器，接口
 */
public interface MovementHandler {

    /**
     * 是否应该由该处理器处理
     *
     * @param type
     * @return
     */
    public boolean shouldHandle(Integer type);

    /**
     * 处理消息
     */
    public void handle(PublishScore publishScore, Integer type);
}
